import { createRouter, createWebHistory } from 'vue-router'
import routes from 'glob-vue-routes:../pages/**/*.{vue,ts,tsx,js,jsx}'

export const createRouterInstance = (baseUrl = import.meta.env.BASE_URL) => {
  return createRouter({
    history: createWebHistory(baseUrl),
    routes
  })
}
